﻿using System.Collections.Generic;
using Icms.Core.Model;
using Icms.Core.Repository;

namespace Icms.Data
{
    public class ParameterRepo: Repo<Parameter>, IParameterRepo
    {
        public ParameterRepo(IDbContextFactory f) : base(f)
        {
        }

        public IEnumerable<Parameter> GetByCode(string code)
        {
            return Where(parameter => parameter.Code == code);
        }
    }
}